# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Eduardo Martins Lopes < edumlopes at gmail dot com >
# Contributor: Poco <poco@atelo.org> (Patched 0.5.4 with atmega16u2 support)
# Contributor: Eric Anderson <ejona86@gmail.com>

pkgname=dfu-programmer
pkgver=0.7.2
pkgrel=3
pkgdesc='Programmer for Atmel chips with a USB bootloader'
url='https://dfu-programmer.github.io/'
arch=('x86_64')
license=('GPL2')
depends=('glibc' 'libusb' 'libusb-1.0.so')
source=(https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('429b89192bb5a9653ad8678dfc182bfc30eb057d0d1f72fe88efdf85005d3ad557e0f572f4fad3346f1f1078cd273a289f4bba2663bb1f840e6bf724d5293db4')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et:
